#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main()
{
    vector<int>nums;
    int n;
    while (cin>>n)
    {
        nums.push_back(n);
    }
    sort(nums.begin(),nums.end());
    cout<<"从标准设备读入数据，直到输入是非整型数据为止"<<endl;
    for (int i=0;i<nums.size();i++)
    {
        cout<<" "<<nums[i];
    }
}